#ifndef TEXTEDITOR_H
#define TEXTEDITOR_H

#include <QPlainTextEdit>
#include <QFileDialog>
#include <htmlsyntaxhighlighter.h>

class TextEditor : public QPlainTextEdit
{
    Q_OBJECT
public:
    explicit TextEditor(QString filename, QWidget *parent = 0);

    void saveFile();

    QString getFileName() const { return filename_; }

private:
    QString filename_;
    QString filePath_;
    HtmlSyntaxHighlighter * highlighter_;
    
signals:

    void saved();
    
private slots:

};

#endif // TEXTEDITOR_H
